package com.example.api.dao;

import com.example.api.model.entity.Role;

import java.util.List;

public interface RoleDao {

    int deleteByPrimaryKey(Integer id);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    List<Role> selectRoleByAdmin(Integer adminId);

    List<Role> findAll();
    
}